package main.java.FSMDE.controllers.factories.test.mock;

import main.java.FSMDE.controllers.IInterfaceController;
import main.java.FSMDE.controllers.factories.IInterfaceControllerFactory;

import FSMDE.controllers.tests.mocks.MockInterfaceController;

public class MockInterfaceControllerFactory implements
		IInterfaceControllerFactory {

	private IInterfaceController controller;
	private int createCalls;

	public void setController(MockInterfaceController controller)
		{
			this.controller = controller;
	}

	@Override
	public IInterfaceController create() {
		this.createCalls++;
		return this.controller;
	}

	public int getCreateCallsCount() {
		return this.createCalls;
	}
}
